package com.cdm.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cdm.dao.CollectMapper;

@Service
public class CollectService {

	@Autowired
	private CollectMapper collectMapper;
	
	public Boolean addCollect(Map<String,Object> paramMap){
		return collectMapper.addCollect(paramMap)==1;
	}
	
	public Boolean deleteCollect(Map<String,Object> paramMap){
		return collectMapper.deleteCollect(paramMap)==1;
	}
	
	public List<Map<String,Object>> findCollect(Map<String,Object> map){
		return collectMapper.findCollect(map);
	}
	
	public Integer findCollectCount(Map<String,Object> map){
		return collectMapper.findCollectCount(map);
	}
	
}
